#!/bin/sh

OFC=openflashchart/charts
OHC=openhaxechart/charts

LS=$(ls -1 $OHC | sed 's/\(.*\)\..*/\1/')

for filename in $LS
do
  if [ -e $OFC/$filename.as ] && [ -e $OHC/$filename.hx ]; then
    echo $OFC/$filename.as $OHC/$filename.hx
    kwrite $OHC/$filename.hx &
    kompare $OFC/$filename.as $OHC/$filename.hx
  fi
done
